package eu.irreality.dai.ui.wrapper;

import eu.irreality.dai.ui.cell.DisplayableObject;
import eu.irreality.dai.world.level.Level;

public abstract class DisplayLayer
{

    private int firstRow;
    private int firstCol;
    private int rows;
    private int cols;
    private Display display;

    public DisplayLayer(Display display, int firstRow, int firstCol, int rows,
	    int cols)
    {
	this.firstRow = firstRow;
	this.firstCol = firstCol;
	this.rows = rows;
	this.cols = cols;
	this.display = display;
    }

    public Display getDisplay()
    {
	return display;
    }

    public void setDisplay(Display display)
    {
	this.display = display;
    }

    public int getFirstRow()
    {
	return firstRow;
    }

    public void setFirstRow(int firstRow)
    {
	this.firstRow = firstRow;
    }

    public int getFirstCol()
    {
	return firstCol;
    }

    public void setFirstCol(int firstCol)
    {
	this.firstCol = firstCol;
    }

    public int getRows()
    {
	return rows;
    }

    public void setRows(int rows)
    {
	this.rows = rows;
    }

    public int getCols()
    {
	return cols;
    }

    public void setCols(int cols)
    {
	this.cols = cols;
    }

    public abstract void initGrid();

    public abstract void addContent(int row, int col, DisplayableObject dObj);

    public abstract void setLevel(Level l);

    public abstract void clear();

    public abstract void clearCell(int row, int col);

}
